import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function getPlatformCategory() {
	return request({
		url: sysPath + '/hx-mart/api/v1/platform/product/category/list',
		method: 'post'
	})
}

export function addPlatformCategory(data) {
	return request({
		url: sysPath + '/hx-mart/api/v1/platform/product/category/add',
		method: 'post',
		data
	})
}

export function editPlatformCategory(data) {
	return request({
		url: sysPath + '/hx-mart/api/v1/platform/product/category/edit',
		method: 'post',
		data
	})
}
